<include file="Public:header" />
<script type="text/javascript">
    $(function(){

        function isNumber(field)
         {
            var   Ret   =   true;
            var   NumStr= "0123456789 ";
            var   chr;
            for   (i=0;i <field.length;++i)
            {
            chr=field.charAt(i);
            if   (NumStr.indexOf(chr,0)==-1)
            {
            Ret=false;
            }
            }
            return(Ret);
        }
    });
</script>
<div class="body">
    <b>学管主任本校区签约学员管理：</b><br /><br />
    说明：本校区签约学员管理，该界面只显示全款学员，首先学管主任应第一时间分配学员ID，否则学管无法接档且教务无法查看学员信息！
    <br /><br />
    <span id="pop" style="color:red;"></span><br />
<table width="800" border="1" cellpadding="0" cellspacing="0" style="border-collapse:collapse" bordercolor="#000000">
    <tr>
        <td width="20%" align="center">学员id</td>
        <td width="10%" align="center">学员姓名</td>
        <td width="5%" align="center">性别</td>
        <td width="10%" align="center">咨询师</td>
        <td width="10%" align="center">学管</td>
        <td width="20%" align="center">提档时间</td>
        <td width="25%" align="center">操作</td>
    </tr>
    <foreach name="list" item="vo">
        <tr<php>if($vo['stu_no']==0) echo ' bgcolor="#ffb8b8"';</php>>
            <td align="center"><php>if($vo['stu_no']==0) echo '未分配'; else echo $vo['stu_no'];</php></td>
            <td align="center">{$vo.stu_name}</td>
            <td align="center">{$vo.stu_sex}</td>
            <td align="center">{$vo.zx_name}</td>
            <td align="center">
                <php>
                if(is_null($vo['xg_name'])) echo '<font color="red">未分配</font>'; else echo $vo['xg_name'];
                </php>
            </td>
            <td align="center">{$vo.td_time}</td>
            <td align="center">
            <php>
                if($vo['stu_no']==0) echo '[<a href="__APP__/ppts-xgzr_fenpei_stuno?id='.$vo['stu_id'].'&TB_iframe=true&height=200&width=300" class="thickbox">分学员id</a>]';
                if($vo['stu_no']!=0){
                if(is_null($vo['xg_name'])) echo '&nbsp;[<a href="__APP__/ppts-xgzr_fenpei_xueguan?id='.$vo['stu_id'].'&TB_iframe=true&height=200&width=300" class="thickbox">分学管</a>]';
                }
            </php>
                &nbsp;[<a href="__APP__/ppts-xgzr_view_stuinfo?id={$vo.stu_id}&TB_iframe=true&height=350&width=420" class="thickbox">查看</a>]

                
            </td>
        </tr>
    </foreach>
</table>
    <br/><br />
    <br />
    <br />
</div>
<include file="Public:ender" />